<template>
  <view class="flex box">
    <image :src="img" class="tag-img" v-if="img"></image>
    <view class="f-c-6 u-f-sm">
      <slot></slot>
    </view>
  </view>
</template>
<script lang="ts" setup>
import {defineProps} from 'vue'
defineProps(['img'])
</script>
<style scoped lang="scss">
@import "@/static/css/index.css";
.tag-img{
  width: 30rpx;
  height: 30rpx;
  margin-right: 10rpx;
}

.box{
  background: #f5f5f5;
  padding:8rpx 20rpx;
  border-radius: 100rpx;
}
</style>